import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { DictIntDateHelper } from "./DictIntDateHelper";
type int = number;
//class SCopyEightyDefenceInfo
    
    export  class SCopyEightyDefenceInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SCopyEightyDefenceInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.score);
            arg1.writeInt(this.maxLife);
            arg1.writeInt(this.currentLife);
            DictIntDateHelper.write(arg1, this.skillCd);
            arg1.writeBool(this.skillUpdate);
            arg1.writeDate(this.nowDt);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.score = arg1.readInt();
            this.maxLife = arg1.readInt();
            this.currentLife = arg1.readInt();
            this.skillCd = DictIntDateHelper.read(arg1);
            this.skillUpdate = arg1.readBool();
            this.nowDt = arg1.readDate();
            return;
        }

        public /* const */_type: int=20444;

        public /* var */score: int;

        public /* var */maxLife: int;

        public /* var */currentLife: int;

        public /* var */skillCd: Map<any, any> /* flash.utils.Dictionary */;

        public /* var */skillUpdate: Boolean;

        public /* var */nowDt: Date;

        public static /* var */_regist: SCopyEightyDefenceInfo;
    }

            SCopyEightyDefenceInfo._regist = new SCopyEightyDefenceInfo(true);
        